using System;

namespace MetarCommonSupport
{
	public class ComboBoxItem
	{
		private string _value=null;
		private string _text=null;
		private object _tag = null;
		public string Value
		{
			get
			{
				return _value;
			}
			set
			{
				_value=value;
			}
		}
		public string Text
		{
			get
			{
				return _text;
			}
			set
			{
				_text=value;
			}
		}
		public object Tag
		{
			get
			{
				return _tag;
			}
			set
			{
				_tag = value;
			}
		}
		public override string ToString()
		{
			return _text;
		}

		public override bool Equals(object obj)
		{
			if(!obj.GetType().FullName.Equals("MetarCommonSupport.ComboBoxItem"))
			{
				return false;
			}
			return this._value.Equals(((ComboBoxItem) obj).Value);
		}

		public override int GetHashCode()
		{
			return this._value.GetHashCode();
		}

	}
}
